﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EPiServer.XmlRpc;

namespace TemplateFoundation.MetaWeblog
{
    /// <summary>
    /// Represents content over MetaWeblog
    /// </summary>
    public class ContentData
    {
        /// <summary>
        /// Categories
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string[] categories;

        /// <summary>
        /// Date created
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public DateTime dateCreated;

        /// <summary>
        /// Description
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string description;

        /// <summary>
        /// Link
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string link;

        /// <summary>
        /// Post ID
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string postid;

        /// <summary>
        /// Excerpt or description
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string mt_excerpt;

        /// <summary>
        /// Keywords
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string mt_keywords;

        /// <summary>
        /// Slug
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string wp_slug;

        /// <summary>
        /// Allow comments
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public int mt_allow_comments;

        /// <summary>
        /// Author
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string wp_author;

        /// <summary>
        /// Author ID
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string wp_author_id;

        /// <summary>
        /// Author display name
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Ignore)]
        public string wp_author_display_name;

        /// <summary>
        /// Title
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Error)]
        public string title;
    }
}
